package com.jbp.model;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * (UserLocation)实体
 * @author cc
 * @since 2021-09-16 17:18:22
 */
@ApiModel(value="UserLocation")
@Data
public class UserLocation implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer id;
    
    private Integer userId;

    //经度
    @ApiModelProperty(value="经度")
    private BigDecimal lng;

    //纬度
    @ApiModelProperty(value="纬度")
    private BigDecimal lat;

    //地址
    @ApiModelProperty(value="地址")
    private String address;

    private String geohash;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}